#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int main()
{
	char a;
	union un
	{
		int age;
		char sex;
		struct st
		{
			int i;
			char* ch;
		}x;
	}y;
	y.age = 10;
	y.x.i = 20;
	y.sex = 'b';
	y.x.ch = &a;
	*(y.x.ch) = 'a';
	cout << "y.x.i=" << y.x.i << endl;
	cout << "y.age" << y.age << endl;
	cout << "y.sex" << y.sex << endl;
	cout << "*(y.x.ch)=" << *(y.x.ch) << endl;
}